Revert "gtkbin: Remove the silliest code on earth"
authorTristan Van Berkom <tristanvb@openismus.com>
Sat, 20 Apr 2013 08:52:16 +0000 (17:52 +0900)
committerTristan Van Berkom <tristanvb@openismus.com>
Mon, 22 Apr 2013 06:20:51 +0000 (15:20 +0900)
commitb164df74506505ac0f4559744ad9b59b5ea57ebf
treeeb04c84005a0d491233df1f3bd23fc5981ce44f7
parent6186429f5f6b2792f286f231d11e37216820c15f
Revert "gtkbin: Remove the silliest code on earth"

This reverts commit f4438a1ffc6aaab92fb6b751cd16e95c2abaa0e3.

The calculation of the delta between parent and child widget
is required in order to automate height-for-width and width-for-height
requests for various GtkBin widgets.

GtkButton, GtkCheckButton, GtkRadioButton, etc, all have different
requests for space around the content which can not be satisfied
with a simple calculation of GtkContainer border-width.
gtk/gtkbin.c